const express=require("express");

const Base64=require("js-base64").Base64;
const md5=require("md5");
const router=express.Router();

router.get("/test_base64",(req,res)=>{
    // let ret=Base64.encode('Man');//加密
    let ret=Base64.decode('TWFu');//解密
    res.send(ret);
})

router.get("/test_md5",(req,res)=>{
    let ret=md5(md5("hello")+"sdfjouwyheoiruawerhfwioahrf");
    res.send(ret)
})

module.exports=router